<!--
*Author：富行天下团队
 *
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *业务请在@/extension/mall/AccountBalance.js此处编写
 -->
<template>
    <div>
        <view-grid
                   ref="grid"
                   :columns="columns"
                   :detail="detail"
                   :editFormFields="editFormFields"
                   :editFormFileds="editFormFields"
                   :editFormOptions="editFormOptions"
                   :searchFormFields="searchFormFields"
                   :searchFormFileds="searchFormFields"
                   :searchFormOptions="searchFormOptions"
                   :table="table"
                   :extend="extend">
        </view-grid>
    </div>
</template>

<script>
    import extend from "@/extension/mall/AccountBalance.js";
    import ViewGrid from "@/components/basic/ViewGrid.vue";
    var vueParam = {
        components: {
            ViewGrid
        },
        data() {
            return {
                table: {
                    key: 'account_code_fk',
                    footer: "Foots",
                    cnName: '应收余额',
                    name: 'AccountBalance',
                    url: "/AccountBalance/",
                    sortName: "createDate"
                },
                extend: extend,
                editFormFields: {},
                editFormOptions: [],
                searchFormFields: {},
                searchFormOptions: [],
                columns: [{field:'record_count',title:'账户详细记录数',type:'int',width:120,align:'left',sortable:true},
                       {field:'amount_noverify',title:'账户未核销金额',type:'decimal',width:120,align:'left'},
                       {field:'amount_verify',title:'账户总核销金额',type:'decimal',width:120,align:'left'},
                       {field:'amount_credit',title:'账户总授信消费金额',type:'decimal',width:120,align:'left'},
                       {field:'amount_recharge',title:'账户总充值消费金额',type:'decimal',width:120,align:'left'},
                       {field:'amount_account',title:'账户总消费金额',type:'decimal',width:120,align:'left'},
                       {field:'balance_credit',title:'账户总授信余额',type:'decimal',width:120,align:'left'},
                       {field:'balance_recharge',title:'账户总充值余额',type:'decimal',width:120,align:'left'},
                       {field:'balance_total',title:'账户总余额',type:'decimal',width:120,align:'left'},
                       {field:'timesapn',title:'时间戳',type:'datetime',width:120,align:'left',sortable:true},
                       {field:'account_code_fk',title:'应收账户编号',type:'string',width:120,hidden:true,readonly:true,require:true,align:'left'},
                       {field:'creator',title:'操作人',type:'string',width:120,align:'left'},
                       {field:'modifier',title:'修改人',type:'string',width:120,align:'left'},
                       {field:'modifyDate',title:'修改时间',type:'datetime',width:120,align:'left',sortable:true},
                       {field:'modifyID',title:'修改人ID',type:'int',width:120,hidden:true,align:'left'},
                       {field:'createDate',title:'创建时间',type:'datetime',width:120,align:'left',sortable:true},
                       {field:'createID',title:'创建人ID',type:'int',width:120,hidden:true,align:'left'}],
                detail: {
                    cnName:"#detailCnName",
                    columns: [],
                    sortName: "",
                    key:""
                }
            };
        }
    };
    export default vueParam;
</script>
